#!/usr/bin/env python

'''
Created on Mar 8, 2016

@author: grind
'''
import urllib2

request = urllib2.urlopen("http://hq.sinajs.cn/list=sh000001")
print type(request)
html = request.read()
details = html.decode("gbk")

print '%s' % details

array = details.split("=")
item = array[1].split(",")
volume = long(item[9])
print '%s, [%s,%s] vol:%d' % (item[3], item[4], item[5], volume/10000)

